import React from 'react';
import { Route,Router,Link, Switch } from "react-router-dom";
import hm from './common/global-history'
import P404 from "./pages/404";
import MainPage from './pages/main';
import PFlash from './pages/flash-page'
import Home from './pages/home'
import FR from './FunsRouter'
export default class AppRouter extends React.Component{
    render(){
        let rs = FR;
        return (<Router history={hm.instance().getHistoryObject()}>
                <Switch>
                    <Route path="/" component={Home}></Route>
                    <Route component={P404}></Route>
                </Switch>
            </Router>)
    }
}